3.95 \(\int (a+b \cot (c+d x))^{5/2} (A+B \cot (c+d x)) \, dx\)

Optimal. Leaf size=188 \[ -\frac{2 \left (a^2 B+2 a A b-b^2 B\right ) \sqrt{a+b \cot (c+d x)}}{d}-\frac{2 (a B+A b) (a+b \cot (c+d x))^{3/2}}{3 d}+\frac{(a-i b)^{5/2} (B+i A) \tanh ^{-1}\left (\frac{\sqrt{a+b \cot (c+d x)}}{\sqrt{a-i b}}\right )}{d}-\frac{(a+i b)^{5/2} (-B+i A) \tanh ^{-1}\left (\frac{\sqrt{a+b \cot (c+d x)}}{\sqrt{a+i b}}\right )}{d}-\frac{2 B (a+b \cot (c+d x))^{5/2}}{5 d} \]

[Out]

((a - I*b)^(5/2)*(I*A + B)*ArcTanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a - I*b]])/d - ((a + I*b)^(5/2)*(I*A - B)*Arc
Tanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a + I*b]])/d - (2*(2*a*A*b + a^2*B - b^2*B)*Sqrt[a + b*Cot[c + d*x]])/d - (
2*(A*b + a*B)*(a + b*Cot[c + d*x])^(3/2))/(3*d) - (2*B*(a + b*Cot[c + d*x])^(5/2))/(5*d)

________________________________________________________________________________________

Rubi [A]  time = 0.452709, antiderivative size = 188, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 5, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {3528, 3539, 3537, 63, 208} \[ -\frac{2 \left (a^2 B+2 a A b-b^2 B\right ) \sqrt{a+b \cot (c+d x)}}{d}-\frac{2 (a B+A b) (a+b \cot (c+d x))^{3/2}}{3 d}+\frac{(a-i b)^{5/2} (B+i A) \tanh ^{-1}\left (\frac{\sqrt{a+b \cot (c+d x)}}{\sqrt{a-i b}}\right )}{d}-\frac{(a+i b)^{5/2} (-B+i A) \tanh ^{-1}\left (\frac{\sqrt{a+b \cot (c+d x)}}{\sqrt{a+i b}}\right )}{d}-\frac{2 B (a+b \cot (c+d x))^{5/2}}{5 d} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*Cot[c + d*x])^(5/2)*(A + B*Cot[c + d*x]),x]

[Out]

((a - I*b)^(5/2)*(I*A + B)*ArcTanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a - I*b]])/d - ((a + I*b)^(5/2)*(I*A - B)*Arc
Tanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a + I*b]])/d - (2*(2*a*A*b + a^2*B - b^2*B)*Sqrt[a + b*Cot[c + d*x]])/d - (
2*(A*b + a*B)*(a + b*Cot[c + d*x])^(3/2))/(3*d) - (2*B*(a + b*Cot[c + d*x])^(5/2))/(5*d)

Rule 3528

Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(d
*(a + b*Tan[e + f*x])^m)/(f*m), x] + Int[(a + b*Tan[e + f*x])^(m - 1)*Simp[a*c - b*d + (b*c + a*d)*Tan[e + f*x
], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && GtQ[m, 0]

Rule 3539

Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[(c
 + I*d)/2, Int[(a + b*Tan[e + f*x])^m*(1 - I*Tan[e + f*x]), x], x] + Dist[(c - I*d)/2, Int[(a + b*Tan[e + f*x]
)^m*(1 + I*Tan[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0]
&& NeQ[c^2 + d^2, 0] &&  !IntegerQ[m]

Rule 3537

Int[((a_.) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[(c*
d)/f, Subst[Int[(a + (b*x)/d)^m/(d^2 + c*x), x], x, d*Tan[e + f*x]], x] /; FreeQ[{a, b, c, d, e, f, m}, x] &&
NeQ[b*c - a*d, 0] && NeQ[a^2 + b^2, 0] && EqQ[c^2 + d^2, 0]

Rule 63

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - (a*d)/b + (d*x^p)/b)^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 208

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-(a/b), 2]*ArcTanh[x/Rt[-(a/b), 2]])/a, x] /; FreeQ[{a,
b}, x] && NegQ[a/b]

Rubi steps

\begin{align*} \int (a+b \cot (c+d x))^{5/2} (A+B \cot (c+d x)) \, dx &=-\frac{2 B (a+b \cot (c+d x))^{5/2}}{5 d}+\int (a+b \cot (c+d x))^{3/2} (a A-b B+(A b+a B) \cot (c+d x)) \, dx\\ &=-\frac{2 (A b+a B) (a+b \cot (c+d x))^{3/2}}{3 d}-\frac{2 B (a+b \cot (c+d x))^{5/2}}{5 d}+\int \sqrt{a+b \cot (c+d x)} \left (a^2 A-A b^2-2 a b B+\left (2 a A b+a^2 B-b^2 B\right ) \cot (c+d x)\right ) \, dx\\ &=-\frac{2 \left (2 a A b+a^2 B-b^2 B\right ) \sqrt{a+b \cot (c+d x)}}{d}-\frac{2 (A b+a B) (a+b \cot (c+d x))^{3/2}}{3 d}-\frac{2 B (a+b \cot (c+d x))^{5/2}}{5 d}+\int \frac{a^3 A-3 a A b^2-3 a^2 b B+b^3 B+\left (3 a^2 A b-A b^3+a^3 B-3 a b^2 B\right ) \cot (c+d x)}{\sqrt{a+b \cot (c+d x)}} \, dx\\ &=-\frac{2 \left (2 a A b+a^2 B-b^2 B\right ) \sqrt{a+b \cot (c+d x)}}{d}-\frac{2 (A b+a B) (a+b \cot (c+d x))^{3/2}}{3 d}-\frac{2 B (a+b \cot (c+d x))^{5/2}}{5 d}+\frac{1}{2} \left ((a-i b)^3 (A-i B)\right ) \int \frac{1+i \cot (c+d x)}{\sqrt{a+b \cot (c+d x)}} \, dx+\frac{1}{2} \left ((a+i b)^3 (A+i B)\right ) \int \frac{1-i \cot (c+d x)}{\sqrt{a+b \cot (c+d x)}} \, dx\\ &=-\frac{2 \left (2 a A b+a^2 B-b^2 B\right ) \sqrt{a+b \cot (c+d x)}}{d}-\frac{2 (A b+a B) (a+b \cot (c+d x))^{3/2}}{3 d}-\frac{2 B (a+b \cot (c+d x))^{5/2}}{5 d}+\frac{\left (i (a+i b)^3 (A+i B)\right ) \operatorname{Subst}\left (\int \frac{1}{(-1+x) \sqrt{a+i b x}} \, dx,x,-i \cot (c+d x)\right )}{2 d}-\frac{\left ((a-i b)^3 (i A+B)\right ) \operatorname{Subst}\left (\int \frac{1}{(-1+x) \sqrt{a-i b x}} \, dx,x,i \cot (c+d x)\right )}{2 d}\\ &=-\frac{2 \left (2 a A b+a^2 B-b^2 B\right ) \sqrt{a+b \cot (c+d x)}}{d}-\frac{2 (A b+a B) (a+b \cot (c+d x))^{3/2}}{3 d}-\frac{2 B (a+b \cot (c+d x))^{5/2}}{5 d}+\frac{\left ((a-i b)^3 (A-i B)\right ) \operatorname{Subst}\left (\int \frac{1}{-1-\frac{i a}{b}+\frac{i x^2}{b}} \, dx,x,\sqrt{a+b \cot (c+d x)}\right )}{b d}+\frac{\left ((a+i b)^3 (A+i B)\right ) \operatorname{Subst}\left (\int \frac{1}{-1+\frac{i a}{b}-\frac{i x^2}{b}} \, dx,x,\sqrt{a+b \cot (c+d x)}\right )}{b d}\\ &=\frac{(a-i b)^{5/2} (i A+B) \tanh ^{-1}\left (\frac{\sqrt{a+b \cot (c+d x)}}{\sqrt{a-i b}}\right )}{d}-\frac{(a+i b)^{5/2} (i A-B) \tanh ^{-1}\left (\frac{\sqrt{a+b \cot (c+d x)}}{\sqrt{a+i b}}\right )}{d}-\frac{2 \left (2 a A b+a^2 B-b^2 B\right ) \sqrt{a+b \cot (c+d x)}}{d}-\frac{2 (A b+a B) (a+b \cot (c+d x))^{3/2}}{3 d}-\frac{2 B (a+b \cot (c+d x))^{5/2}}{5 d}\\ \end{align*}

Mathematica [B]  time = 1.78882, size = 379, normalized size = 2.02 \[ -\frac{2 \left (\left (a^2 B+2 a A b-b^2 B\right ) \sqrt{a+b \cot (c+d x)}+\frac{\sqrt{a-\sqrt{-b^2}} \left (a^3 \left (A b-\sqrt{-b^2} B\right )-3 a^2 b \left (A \sqrt{-b^2}+b B\right )+3 a b^2 \left (\sqrt{-b^2} B-A b\right )+b^3 \left (A \sqrt{-b^2}+b B\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{a+b \cot (c+d x)}}{\sqrt{a-\sqrt{-b^2}}}\right )}{2 \left (a \sqrt{-b^2}+b^2\right )}+\frac{\left (a^3 \left (-\left (A b+\sqrt{-b^2} B\right )\right )+3 a^2 b \left (b B-A \sqrt{-b^2}\right )+3 a b^2 \left (A b+\sqrt{-b^2} B\right )+b^3 \left (A \sqrt{-b^2}-b B\right )\right ) \tanh ^{-1}\left (\frac{\sqrt{a+b \cot (c+d x)}}{\sqrt{a+\sqrt{-b^2}}}\right )}{2 \sqrt{-b^2} \sqrt{a+\sqrt{-b^2}}}+\frac{1}{3} (a B+A b) (a+b \cot (c+d x))^{3/2}+\frac{1}{5} B (a+b \cot (c+d x))^{5/2}\right )}{d} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Cot[c + d*x])^(5/2)*(A + B*Cot[c + d*x]),x]

[Out]

(-2*((Sqrt[a - Sqrt[-b^2]]*(-3*a^2*b*(A*Sqrt[-b^2] + b*B) + b^3*(A*Sqrt[-b^2] + b*B) + a^3*(A*b - Sqrt[-b^2]*B
) + 3*a*b^2*(-(A*b) + Sqrt[-b^2]*B))*ArcTanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a - Sqrt[-b^2]]])/(2*(b^2 + a*Sqrt[
-b^2])) + ((b^3*(A*Sqrt[-b^2] - b*B) + 3*a^2*b*(-(A*Sqrt[-b^2]) + b*B) - a^3*(A*b + Sqrt[-b^2]*B) + 3*a*b^2*(A
*b + Sqrt[-b^2]*B))*ArcTanh[Sqrt[a + b*Cot[c + d*x]]/Sqrt[a + Sqrt[-b^2]]])/(2*Sqrt[-b^2]*Sqrt[a + Sqrt[-b^2]]
) + (2*a*A*b + a^2*B - b^2*B)*Sqrt[a + b*Cot[c + d*x]] + ((A*b + a*B)*(a + b*Cot[c + d*x])^(3/2))/3 + (B*(a +
b*Cot[c + d*x])^(5/2))/5))/d

________________________________________________________________________________________

Maple [B]  time = 0.088, size = 2405, normalized size = 12.8 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*cot(d*x+c))^(5/2)*(A+B*cot(d*x+c)),x)

[Out]

-1/4/d*b^2*ln(b*cot(d*x+c)+a+(a+b*cot(d*x+c))^(1/2)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)+(a^2+b^2)^(1/2))*B*(2*(a^2+b
^2)^(1/2)+2*a)^(1/2)+1/4/d*b^2*ln((a+b*cot(d*x+c))^(1/2)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)-b*cot(d*x+c)-a-(a^2+b^2
)^(1/2))*B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)-1/d*b^3/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)*arctan(((2*(a^2+b^2)^(1/2)+2*a)
^(1/2)-2*(a+b*cot(d*x+c))^(1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2))*A+1/d*b^3/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)*arctan
((2*(a+b*cot(d*x+c))^(1/2)+(2*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1/2))/(2*(a^2+b^2)^(1/2)-2*a)^(1/2))*B*(a^2+b^2)^(1/2)*a^2+1/2/d*ln((a+b*cot(d*x+c))^(
1/2)*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)-b*cot(d*x+c)-a-(a^2+b^2)^(1/2))*B*(2*(a^2+b^2)^(1/2)+2*a)^(1/2)*(a^2+b^2)^(
1/2)*a-1/d/(2*(a^2+b^2)^(1/2)-2*a)^(1/2)*arctan(((2*(a^2+b^2)^(1/2)+2*a)^(1/2)-2*(a+b*cot(d*x+c))^(1/2))/(2*(a
^2+b^2)^(1/2)-2*a)^(1/2))*B*(a^2+b^2)^(1/2)*a^2+2/d*B*b^2*(a+b*cot(d*x+c))^(1/2)-2/3/d*A*(a+b*cot(d*x+c))^(3/2
)*b-2/3/d*B*(a+b*cot(d*x+c))^(3/2)*a

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \cot \left (d x + c\right ) + A\right )}{\left (b \cot \left (d x + c\right ) + a\right )}^{\frac{5}{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*cot(d*x+c))^(5/2)*(A+B*cot(d*x+c)),x, algorithm="maxima")

[Out]

integrate((B*cot(d*x + c) + A)*(b*cot(d*x + c) + a)^(5/2), x)

________________________________________________________________________________________

Fricas [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*cot(d*x+c))^(5/2)*(A+B*cot(d*x+c)),x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*cot(d*x+c))**(5/2)*(A+B*cot(d*x+c)),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \cot \left (d x + c\right ) + A\right )}{\left (b \cot \left (d x + c\right ) + a\right )}^{\frac{5}{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*cot(d*x+c))^(5/2)*(A+B*cot(d*x+c)),x, algorithm="giac")

[Out]

integrate((B*cot(d*x + c) + A)*(b*cot(d*x + c) + a)^(5/2), x)